#include <stdio.h>

extern char **environ;

int main(int argc, char const *argv[])
{
    int i = 0;
    
    while( environ[i] != NULL )
    {
        printf( "environ[%d] = %s\n", i, environ[i] );
        ++i;
    }

    return 0;
}
